package com.earl.gsm.dao.impl.finance;

import java.util.HashMap;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.earl.gsm.commons.dao.impl.BaseDaoImpl;
import com.earl.gsm.dao.FinanceRecordDao;
import com.earl.gsm.domain.gsm.finance.FinanceRecord;

@Repository("finaceRecord")
public class FinanceRecordDaoImpl extends BaseDaoImpl<FinanceRecord> implements FinanceRecordDao{

	@Override
	public List<FinanceRecord> countRate(String minDate,String maxDate){
		
		HashMap<String, Object> hashMap = new HashMap<String,Object>();
		hashMap.put("minDate", minDate);
		hashMap.put("maxDate", maxDate);
		List<FinanceRecord> dodo = sqlManager.select("finance.countRate", FinanceRecord.class, hashMap);
		return dodo;
	}
	
}